$webwork.htmlEncode($page.space.name) : 2. WFS
This page last changed on Dec 18, 2007 by aaime.
General introductionA WFS allows uniform access to features stored on a server. Use a WFS when you want to perform actions such as:
The other feature of interest to users is 'Transactions', being able to insert, update, and delete feature on a map. The GeoServer User Map is an example of this, where users can zoom and select 'Add User' on a certain point, and it will be inserted into the backend database. Locking allows additional control over transactions, so that users do not overwrite data others are modifying. In short, WFS leads to greater transparency and openness in mapping applications. Instead of merely being able to look at a picture of the map, as the provider wants the user to see, the power is in the hands of the user to determine how to visualize the raw geographic and associated data. The data can be downloaded and given further analysis and combined with other data, or it can be chained with other web services to do even more interesting things on the web. The transactional capabilities open up the possibilities for collaborations across the internet. Users no longer need permissions to access the same spatial database, they can just use the standard WFS-T interface. This has the potential to truly enable open geo-data, just as the internet plus networked source code management tools enabled the open source movement. For more information about WFS see the WFS 1.0 and WFS 1.1 specifications at OGC WFS 1.0, WFS 1.1At the time of writing there are two WFS specifications:
GeoServer up to version 1.5.x supports only WFS 1.0, starting from GeoServer 1.6.0 we do support WFS 1.1 too.
According to the specification, when you're hitting the capabilities request without specifying a version you'll get back the highest version supported byt the server. This means the WFS capabilities link now returns WFS 1.1 capabilities (whose structure is different than the 1.0 version). http://host:port/geoserver/wfs?request=GetCapabilities&service=WFS&version=1.0.0
The axis order issueMost (if not all) WFS 1.0 servers available on the internet will return geographic coordinates in longitude/latitude order. It's the way most GIS systems work, and the most common way to distribute data as well (most, if not all, shapefiles available for download on the net adopt this order). The trouble is, geographic and cartographic traditional order is the opposite: first latitude, then longitude. The WFS 1.1 specification mandates the usage of the the urn:x-ogc:def:crs:EPSG:xxxx, which is specified as to something respecting "the authority axis order". In the case of the official EPSG database, that axis order is always latitude/longitude for geographic data. In order to be certified compliant with WFS 1.1 a server has to use that way of specifying an SRS name in the capabilities, making latitude/longitude the default axis order for all requests. Long story short, if you are making a WFS 1.1 GetFeature request on a geographic data set you'll get back coordinates in latitude/longitude orders.
In this way depending on the client you'll be able to get data in whatever axis order you want. A fully compliant WFS 1.1 client will have to deal with latitude/longitude axis, whilst everything else might still be using the old ways of specifying an SRS name and receive back data in longitude/latitude order. More informationYou can get more information about WFS and GeoServer specific extensions here: |
Document generated by Confluence on Jan 16, 2008 23:27 |